<?php

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class StationsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
    	$stations = [
    		[
    			'id' => 1,
    			'company_id' => 1,
    			'project_id' => 1,
    			'longitude' => '128.828344',
    			'latitude' => '28.384474',
    			'image' => '/images/image.png',
    			'name' => '岗点1',
    			'assignment' => '1、不得看手机；2、在规定时间报岗',
    			'status' => 1,
    			'created_at' => date('Y-m-d'),
    			'updated_at' => date('Y-m-d')
			],[
    			'id' => 2,
    			'company_id' => 1,
    			'project_id' => 1,
    			'longitude' => '128.728344',
    			'latitude' => '28.384474',
    			'image' => '/images/image.png',
    			'name' => '岗点2',
    			'assignment' => '1、不得看手机；2、在规定时间报岗',
    			'status' => 1,
    			'created_at' => date('Y-m-d'),
    			'updated_at' => date('Y-m-d')
			],[
    			'id' => 3,
    			'company_id' => 1,
    			'project_id' => 1,
    			'longitude' => '128.628344',
    			'latitude' => '28.384474',
    			'image' => '/images/image.png',
    			'name' => '岗点3',
    			'assignment' => '1、不得看手机；2、在规定时间报岗',
    			'status' => 1,
    			'created_at' => date('Y-m-d'),
    			'updated_at' => date('Y-m-d')
			],
		];

    	DB::table('stations')->insert($stations);
    }
}
